package cn.ito.zjgsu.mapping;

import cn.ito.zjgsu.domain.Person;
import cn.ito.zjgsu.domain.PersonExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PersonMapper {
    int countByExample(PersonExample example);

    int deleteByExample(PersonExample example);

    int deleteByPrimaryKey(Integer personId);

    int insert(Person record);

    int insertSelective(Person record);

    List<Person> selectByExample(PersonExample example);

    Person selectByPrimaryKey(Integer personId);

    int updateByExampleSelective(@Param("record") Person record, @Param("example") PersonExample example);

    int updateByExample(@Param("record") Person record, @Param("example") PersonExample example);

    int updateByPrimaryKeySelective(Person record);

    int updateByPrimaryKey(Person record);

    List<Person> selectPersonWithPidsandKeys(@Param("list")List<Integer> pids, @Param("key")String key,@Param("pageNum")int pageNum,@Param("records") int records);

	List<Person> selectPersonByroleIdandkey(int roleId, int pageNum, int records, String key);

	List<Person> queryPidsByPidssandKey(@Param("list") Integer[] staffIds, @Param("key") String key);
}